<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="app" tagdir="/WEB-INF/tags"%>
<app:page>
  <form action="${pageContext.request.contextPath}/admin/pool" method="post" class="form-horizontal" role="form">
    <c:if test="${!empty item.id}">
      <input type="hidden" name="id" value="${item.id}" />
    </c:if>
    <div class="form-group">
      <label for="title" class="col-sm-2 control-label">Title</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" id="title" name="title" value="${item.title}">
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <button type="submit" class="btn btn-default" name="save" value="save">Save</button>
        <a class="btn btn-default" href="${pageContext.request.contextPath}/admin/pool">Cancel</a>
      </div>
    </div>
  </form>
</app:page>
